package rs.frenjoynet.core.ui;

import org.jboss.seam.annotations.Name;
import org.jboss.seam.annotations.Scope;
import org.jboss.seam.annotations.Install;
import org.jboss.seam.ScopeType;
import rs.frenjoynet.core.core.entity.db.Information;

/**
 * Created by IntelliJ IDEA.
 * User: ppopovic
 * Date: 05.11.2009.
 * Time: 15.55.25
 * To change this template use File | Settings | File Templates.
 */
@Name ("accountBean")
@Scope (ScopeType.EVENT)
@Install (true)
public class AccountBean extends BaseBean
{
	public String getFullName()
	{
		return getActiveUserSession().getInformation().getFirstName() + " " +
				getActiveUserSession().getInformation().getLastName();
	}

    public Information getInformation()
	{
		return getActiveUserSession().getInformation();
	}
}
